package com.ru.application.creditscore.domain;

import java.io.Serializable;

import javax.persistence.Transient;

public class Car implements Serializable {
 
    private static final long serialVersionUID = 1L;
    private Integer name;
    private int year;
    private String color;
    private String manufactor;
    @Transient
    private boolean chkDelete;
    
    public Car() {
	
    }
    public Car(Integer name, int year, String manufactor, String color, boolean chkDel) {
        this.name = name;
        this.year = year;
        this.manufactor = manufactor;
        this.color = color;
        this.chkDelete = chkDel;
    }

    public Integer getName() {
        return name;
    }

    public int getYear() {
        return year;
    }

    public void setName(Integer name) {
        this.name = name;
    }

    public void setYear(int year) {
        this.year = year;
    }
    
    
    public String getColor() {
        return color;
    }
    public void setColor(String color) {
        this.color = color;
    }
    public String getManufactor() {
        return manufactor;
    }
    public void setManufactor(String manufactor) {
        this.manufactor = manufactor;
    }
    
    
    public boolean isChkDelete() {
        return chkDelete;
    }
    public void setChkDelete(boolean chkDelete) {
        this.chkDelete = chkDelete;
    }
    
    @Override
    public String toString() {
        return getName().toString();
    }
}
